package com.itheima.info.manager.system.controller;

import com.itheima.info.manager.system.domain.Student;
import com.itheima.info.manager.system.service.StudentService;

import java.util.Scanner;

/*
学生用户交互类
键盘录入和输出语句

学生的
入口
增
删
改
查
 */
public class OtherStudentController extends BaseStudentController {


    @Override
    public Student luruStudentInfo(String sid) {
        Scanner sc = new Scanner(System.in);
        //录入新的学生的信息
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //封装对象
        Student student = new Student(sid,name,age,birthday);
        return student;
    }
}
